package binPack.shelf
{
	import flash.geom.Rectangle;

	internal class Shelf
	{
		/** The x-coordinate that specifies where the used shelf space ends.
		* Space between [0, currentX[ has been filled with rectangles, [currentX, binWidth[ is still available for filling.
		 * */
		public var currentX:int;
		
		/** The y-coordinate of where this shelf starts, inclusive.*/
		public var startY:int;
		
		/** Specifices the height of this shelf. The topmost shelf is "open" and its height may grow. */
		public var height:int;
		
		/** Lists all the rectangles in this shelf.*/
		public var usedRectangles:Vector.<Rectangle>;
		public function Shelf()
		{
			usedRectangles = new Vector.<Rectangle>();
		}
	}
}